﻿using System.Collections.Generic;
using log4net.Appender;
using log4net.Core;

namespace SKBKontur.CassandraLogging.Tests
{
    public class MockAppender : IAppender
    {
        public static IList<LoggingEvent> loggingEvents = new List<LoggingEvent>();

        public void Close()
        {
        }

        public void DoAppend(LoggingEvent loggingEvent)
        {
            LocationInfo information = loggingEvent.LocationInformation;
            loggingEvents.Add(loggingEvent);
        }

        public string Name { get; set; }
    }
}
